
package edu.practica.model;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name="Detalles_Reserva")
public class Detalles_Reserva  implements Serializable {
    
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
       
    @JoinColumn(name="Reserva", referencedColumnName="ID")
    @ManyToOne
    private Reserva ReservaID;
    
    @Column(name="Num_Sillas_Reservadas")
    private int num_Silla_Reservada;

    public Detalles_Reserva() {
    }

    public Reserva getReservaID() {
        return ReservaID;
    }

    public void setReservaID(Reserva ReservaID) {
        this.ReservaID = ReservaID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getNum_Silla_Reservada() {
        return num_Silla_Reservada;
    }

    public void setNum_Silla_Reservada(int num_Silla_Reservada) {
        this.num_Silla_Reservada = num_Silla_Reservada;
    }
    
}
